﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="EmpDutyLowLimit.aspx.cs"
    Inherits="UI.ModEmployee.EmpDutyLowLimit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>定义职位人数下限</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            <b>定义职位下限</b></div>
        <div class="pagetopright">

           职位<asp:TextBox ID="txtDeptName" CssClass="InputCss"  runat="server" Width="60px"></asp:TextBox>
            <asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss" Width="100px"
                            TabIndex="0" >
                        </asp:DropDownList>
            <asp:Button ID="btnSearch" CssClass="InputCss"  runat="server" Text="查询" 
                onclick="btnSearch_Click1" />
                <asp:Button ID="btnAdd" CssClass="InputCss" runat="server" Text="增加" />
                  <asp:Button ID="btnBatchAdd" CssClass="InputCss" runat="server" Text="批量增加" />
            <a href="#" onclick="javascript:window.location.reload()">刷新</a> 
        </div>
    </div>
    <div>
        <asp:GridView ID="gvList" runat="server" DataKeyNames="ID" Width="96%" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
            CssClass="td" CellPadding="3" GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound"
            HorizontalAlign="Center" ShowFooter="True">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID"></asp:BoundField>
                <asp:TemplateField HeaderText="行号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1%></ItemTemplate>
                    <ItemStyle Width="70px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="部门名称" SortExpression="DeptName">
                    <ItemTemplate>
                        <a href="javascript:ShowLink('EmpDutyLowAdd.aspx?ID=<%# Eval("ID")%>&DeptID=<%# Eval("DeptID")%>',600,480)">
                            <%# Eval("DeptName")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="职务" SortExpression="DutyName">
                    <ItemTemplate>
                        <a href="javascript:ShowLink('EmpDutyLowAdd.aspx?ID=<%# Eval("ID")%>&DeptID=<%# Eval("DeptID")%>',600,480)">
                            <%# Eval("DutyName")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="LowLimitNum" HeaderText="底限人数" SortExpression="LowLimitNum"></asp:BoundField>
              
            </Columns>
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
